package com.train.mgr.modules.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.train.mgr.modules.biz.dto.response.EmployeeRespDTO;
import com.train.mgr.modules.system.entity.User;
import org.apache.ibatis.annotations.Param;

/**
 * 系统用户(User)表数据库访问层
 *
 * @author cxg
 * @since 2023-03-25 19:39:34
 */
public interface UserMapper extends BaseMapper<User> {

    Integer updateUserEnable();

    Integer clearUserWxOpenId(@Param("userId") Long userId);

    Integer stopUserEnabled(@Param("enabled") Long enabled);

    Page<EmployeeRespDTO> selectNotCourseUserList(Page<EmployeeRespDTO> page,@Param("customerId") Long customerId, @Param("courseId") Long courseId, @Param("userLable") String userLable, @Param("q") String q);
}

